const useCommodityStore = defineStore(
  // 唯一ID
  'cacheData', () => {
    // 商品发布
    let commodityFrom = {
      actJson: [
        {
          actType: 0,
          actId: '',
          vipGiftTicketId: '',
          focaType: 1,
        },
      ],
      productName: '',
      flag: 1,
      guiGeType: 0,
      CDNQRCodeBGPicUrl: '',
      productNums: undefined,
      marketPrice: '',
      salePrice: '',
      baseSaleCount: '',
      orderSaleType: 0,
      outProductCode: '',
      outProductGuiGe: '',
      weight: 0,
      isActive: true,
      activeTime: '',
      isDeliver: '',
      kuaiDiGongSi: '',
      cdnProductPhotoPic: '',
      coverImages: [],
      introduceImages: [],
      limitEveryBuyCount: '',
      limitOpenIdBuyCount: undefined,
      relateTicketBuyLimit: undefined,
      displayInShop: undefined,
      buyedFaTicketId: '',
      // buyedFaTicketCount: undefined,
      isRefuned: undefined,
      isUpdateAddress: undefined,
      videoUrl: '', // 视频介绍
      CoverVideoUrl: '', // 商品封面视频路径
      coverAutoPlay: 1,
      picMoudle: [],
      role3SalePrice: 0,
      role2SalePrice: 0,
      outProductCode2: '',
      outProductGuiGe2: '',
      closeKaiTuan: 0,
      limitKaiTuanCount: 0,
      subjectList: [
        {
          subjectId: 0,
          productId: 0,
          sort: 0,
          enable: true,
          desp: '',
        },
      ],
      saleMultiRoles: [{
        roleId: 2,
        salePrice: 0,
      }],
    }

    const GetCommodityData = () => {
      return commodityFrom
    }

    const RememberCommodity = (data: any) => {
      commodityFrom = data
    }

    const EmptyCommodity = () => {
      commodityFrom = {
        actJson: [
        ],
        productName: '',
        flag: 1,
        guiGeType: 0,
        productNums: undefined,
        CDNQRCodeBGPicUrl: '',
        marketPrice: '',
        salePrice: '',
        baseSaleCount: '',
        orderSaleType: 0,
        outProductCode: '',
        outProductGuiGe: '',
        weight: 0,
        isActive: true,
        activeTime: '',
        isDeliver: '',
        kuaiDiGongSi: '',
        cdnProductPhotoPic: '',
        coverImages: [],
        introduceImages: [],
        limitEveryBuyCount: '',
        limitOpenIdBuyCount: undefined,
        relateTicketBuyLimit: undefined,
        displayInShop: undefined,
        buyedFaTicketId: '',
        // buyedFaTicketCount: undefined,
        isRefuned: undefined,
        isUpdateAddress: undefined,
        videoUrl: '', // 视频介绍
        CoverVideoUrl: '', // 商品封面视频路径
        coverAutoPlay: 1,
        picMoudle: [],
        role3SalePrice: 0,
        role2SalePrice: 0,
        outProductCode2: '',
        outProductGuiGe2: '',
        closeKaiTuan: 0,
        limitKaiTuanCount: 0,
        subjectList: [
          {
            subjectId: 0,
            productId: 0,
            sort: 0,
            enable: true,
            desp: '',
          },
        ],
        saleMultiRoles: [{
          roleId: 2,
          salePrice: 0,
        }],
      }
    }

    // 新增卡券
    let voucherFrom = {
      name: '',
      price: 0,
      type: undefined,
      count: undefined,
      productCode: '',
      flag: 0,
      picUrl: '',
      intro: '',
      endTime: '',
      relateProduct: 0,
      relateProductBanner: '',
      type3PriceArray: [],
    }

    const GetVoucherData = () => {
      return voucherFrom
    }

    const RememberVoucher = (data: any) => {
      voucherFrom = data
    }

    const EmptyVoucher = () => {
      voucherFrom = {
        name: '',
        price: 0,
        type: undefined,
        count: undefined,
        productCode: '',
        flag: 0,
        picUrl: '',
        intro: '',
        endTime: '',
        relateProduct: 0,
        relateProductBanner: '',
        type3PriceArray: [],
      }
    }

    // 新增落地页
    let videoFrom = {
      landingName: '', // 标题
      landingType: 0, // 活动类型
      landingLine: 0, // 优先
      customerServiceSwitch: true, // 是否显示
      customerServicePic: '', // 客服图标
      customerServiceLink: '', // 跳转连接
      buyNocouponPic: '', // 未领券购买按钮图片
      buyCouponPic: '', // 券后购买按钮图片
      buyNovipPic: '', // 非会员购买图片
      buyVipPic: '', // 会员购买图片
      landingBg: [], // 背景图，多张用,分割
      outProductId: 0, // 关联商品ID
      outCouponId: 0, // 关联券ID
      payBeforePic: '', // 支付之前提示图片
      payBeforeSwitch: true, // 支付之前是否提示
      payAfterPic: '', // 支付之后提示图片
      payAfterSwitch: true, // 支付之后是否提示
      scrollingSwitch: 1, // 弹幕开关
      payLayerSwitch: 0,
      payLayerPic: [],
      landingStatus: false,
      landingId: 0,
    }

    const GetVideoData = () => {
      return videoFrom
    }

    const RememberVideo = (data: any) => {
      videoFrom = data
    }

    const EmptyVideo = () => {
      videoFrom = {
        landingName: '', // 标题
        landingType: 0, // 活动类型
        landingLine: 0, // 优先
        customerServiceSwitch: true, // 是否显示
        customerServicePic: '', // 客服图标
        customerServiceLink: '', // 跳转连接
        buyNocouponPic: '', // 未领券购买按钮图片
        buyCouponPic: '', // 券后购买按钮图片
        buyNovipPic: '', // 非会员购买图片
        buyVipPic: '', // 会员购买图片
        landingBg: [], // 背景图，多张用,分割
        outProductId: 0, // 关联商品ID
        outCouponId: 0, // 关联券ID
        payBeforePic: '', // 支付之前提示图片
        payBeforeSwitch: true, // 支付之前是否提示
        payAfterPic: '', // 支付之后提示图片
        payAfterSwitch: true, // 支付之后是否提示
        scrollingSwitch: 1, // 弹幕开关
        payLayerSwitch: 0,
        payLayerPic: [],
        landingStatus: false,
        landingId: 0,
      }
    }

    // 企微消息
    let enterpriseWeChatFrom = {
      title: '',
      pagepath: '',
      msgtype: 78,
      desp: '',
      weappIconUrl: '',
      cardPicUrl: '',
    }

    const GetEnterpriseWeChatData = () => {
      return enterpriseWeChatFrom
    }

    const RememberEnterpriseWeChat = (data: any) => {
      enterpriseWeChatFrom = data
    }

    const EmptyEnterpriseWeChat = () => {
      enterpriseWeChatFrom = {
        title: '',
        pagepath: '',
        msgtype: 78,
        desp: '',
        weappIconUrl: '',
        cardPicUrl: '',
      }
    }

    // 消息组
    let messageFrom = {
      groupName: '',
      type: undefined,
      relateConfigArray: [],
    }

    const GetMessageData = () => {
      return messageFrom
    }

    const RememberMessage = (data: any) => {
      messageFrom = data
    }

    const EmptyMessage = () => {
      messageFrom = {
        groupName: '',
        type: undefined,
        relateConfigArray: [],
      }
    }

    // 人员管理
    let peopleFrom = {
      account: '',
      password: '',
      mobile: 0,
      role: 2,
      enable: true,
      description: '',
      id: 0,
    }

    const GetPeopleData = () => {
      return peopleFrom
    }

    const RememberPeople = (data: any) => {
      peopleFrom = data
    }

    const EmptyPeople = () => {
      peopleFrom = {
        account: '',
        password: '',
        mobile: 0,
        role: 2,
        enable: true,
        description: '',
        id: 0,
      }
    }

    // 会员攻略图标
    let vipLconFrom = {
      title: '',
      linkUrl: '',
      sort: '',
      iconPic: '',
      iconType: '',
      isJump: false,
    }

    const GetVipLconData = () => {
      return vipLconFrom
    }

    const RememberVipLcon = (data: any) => {
      vipLconFrom = data
    }

    const EmptyVipLcon = () => {
      vipLconFrom = {
        title: '',
        linkUrl: '',
        sort: '',
        iconPic: '',
        iconType: '',
        isJump: false,
      }
    }

    // 会员攻略图标
    let screenFrom = {
      name: '',
      machineCode: '',
      vid: 0,
      drawId: 0,
      storeId: 0,
      bannerJson: [],
      qvQrCodePic: '',
    }

    const GetScreenData = () => {
      return screenFrom
    }

    const RememberScreen = (data: any) => {
      screenFrom = data
    }

    const EmptyScreen = () => {
      screenFrom = {
        name: '',
        machineCode: '',
        vid: 0,
        drawId: 0,
        storeId: 0,
        bannerJson: [],
        qvQrCodePic: '',
      }
    }

    // 音乐页面配置
    let musicFrom = {
      musicUrl: '',
      soundOnIcon: '',
      soundTurnOffIcon: '',
      backgroundPic: '',
      description: '',
      enable: true,
    }

    const GetMusicData = () => {
      return musicFrom
    }

    const RememberMusic = (data: any) => {
      musicFrom = data
    }

    const EmptyMusic = () => {
      musicFrom = {
        musicUrl: '',
        soundOnIcon: '',
        soundTurnOffIcon: '',
        backgroundPic: '',
        description: '',
        enable: true,
      }
    }

    // 图标管理
    let iconFrom = {
      display: 0,
      iconClass: 0,
      iconPic: '',
      turnLink: '',
    }

    const GetIconData = () => {
      return iconFrom
    }

    const RememberIcon = (data: any) => {
      iconFrom = data
    }

    const EmptyIcon = () => {
      iconFrom = {
        display: 0,
        iconClass: 0,
        iconPic: '',
        turnLink: '',
      }
    }

    // 核销
    let hexiaoFrom = {
      openId: '',
      mobile: '',
      enable: true,
      jingDianShopName: '',
      id: 0,
    }

    const GetHexiaoData = () => {
      return hexiaoFrom
    }

    const RememberHexiao = (data: any) => {
      hexiaoFrom = data
    }

    const EmptyHexiao = () => {
      hexiaoFrom = {
        openId: '',
        mobile: '',
        enable: true,
        jingDianShopName: '',
        id: 0,
      }
    }

    // 抽奖活动奖品
    let drawactprizeFrom = {
      prizeName: '',
      prizePic: '',
      prizePicScreen: '',
      prizeType: 1,
      productId: 0,
      change: 0,
      prizeNums: 0,
      usedNums: 0,
      flag: -1,
      ticketId: 0,
      sort: 0,
      drawId: 0,
    }

    const GetDrawactprizeData = () => {
      return drawactprizeFrom
    }

    const RememberDrawactprize = (data: any) => {
      drawactprizeFrom = data
    }

    const EmptyDrawactprize = () => {
      drawactprizeFrom = {
        prizeName: '',
        prizePic: '',
        prizePicScreen: '',
        prizeType: 1,
        productId: 0,
        change: 0,
        prizeNums: 0,
        usedNums: 0,
        flag: -1,
        ticketId: 0,
        sort: 0,
        drawId: 0,
      }
    }

    // 订阅消息模板
    let subscribermsgtempleFrom = {
      wxTemplateId: '',
      wxTemplateTitle: '',
      templateIcon: '',
      linkUrl: '',
      content1: '',
      content2: '',
      content3: '',
      content4: '',
      enable: true,
      templateType: 1,
      templateKeywords: [],
    }

    const GetSubscribermsgtempleData = () => {
      return subscribermsgtempleFrom
    }

    const RememberSubscribermsgtemple = (data: any) => {
      subscribermsgtempleFrom = data
    }

    const EmptySubscribermsgtemple = () => {
      subscribermsgtempleFrom = {
        wxTemplateId: '',
        wxTemplateTitle: '',
        templateIcon: '',
        linkUrl: '',
        content1: '',
        content2: '',
        content3: '',
        content4: '',
        enable: true,
        templateType: 1,
        templateKeywords: [],
      }
    }

    // 抽奖活动
    let drawactFrom = {
      drawBg: '',
      wheelBg: '',
      drawPrebg: '',
      newUserNums: 0,
      bgColor: '',
      btnBg: '',
      btnBgColor: '',
      ruleIcon: '',
      rulePic: '',
      myprizeBg: '',
      myprizeIcon: '',
      myprizeTicketbg: '',
      moreIcon: '',
      moreLink: '',
      productJson: [],
      getPrizeLayer: '',
      getPrizeTypeColor: '',
      getPrizeNameColor: '',
      getPrizeBtnColor: '',
      getPrizeBgbtnColor: '',
      sharePic: '',
      shareTxt: '',
      actStatus: 0,
      beginTime: '',
      endTime: '',
      drawId: '',
      descriptionTxt: '',
      descriptionPic: '',
      drawActTasks: [],
    }

    const GetDrawactData = () => {
      return drawactFrom
    }

    const RememberDrawact = (data: any) => {
      drawactFrom = data
    }

    const EmptyDrawact = () => {
      drawactFrom = {
        drawBg: '',
        wheelBg: '',
        drawPrebg: '',
        newUserNums: 0,
        bgColor: '',
        btnBg: '',
        btnBgColor: '',
        ruleIcon: '',
        rulePic: '',
        myprizeBg: '',
        myprizeIcon: '',
        myprizeTicketbg: '',
        moreIcon: '',
        moreLink: '',
        productJson: [],
        getPrizeLayer: '',
        getPrizeTypeColor: '',
        getPrizeNameColor: '',
        getPrizeBtnColor: '',
        getPrizeBgbtnColor: '',
        sharePic: '',
        shareTxt: '',
        actStatus: 0,
        beginTime: '',
        endTime: '',
        drawId: '',
        descriptionTxt: '',
        descriptionPic: '',
        drawActTasks: [],
      }
    }

    // 客户端账号
    let drawactAdminAccountFrom = {
      username: '',
      pwd: '',
      mobile: '',
      roleId: 1,
      realname: '',
      nickname: '',
      headimgurl: '',
      expiredTime: '',
      accountState: 1,
      storeId: '',
      openId: '',
      id: 0,
    }

    const GetDrawactAdminAccountData = () => {
      return drawactAdminAccountFrom
    }

    const RememberDrawactAdminAccount = (data: any) => {
      drawactAdminAccountFrom = data
    }

    const EmptyDrawactAdminAccount = () => {
      drawactAdminAccountFrom = {
        username: '',
        pwd: '',
        mobile: '',
        roleId: 1,
        realname: '',
        nickname: '',
        headimgurl: '',
        expiredTime: '',
        accountState: 1,
        storeId: '',
        openId: '',
        id: 0,
      }
    }

    // 客户端账号
    let drawactAccountLabelFrom = {
      labelName: '',
      labelType: 1,
      adminId: 0,
      id: 0,
    }

    const GetDrawactAccountLabelData = () => {
      return drawactAccountLabelFrom
    }

    const RememberDrawactAccountLabel = (data: any) => {
      drawactAccountLabelFrom = data
    }

    const EmptyDrawactAccountLabel = () => {
      drawactAccountLabelFrom = {
        labelName: '',
        labelType: 1,
        adminId: 0,
        id: 0,
      }
    }

    // 送面膜
    let givefacialmaskactFrom = {
      title: '',
      bgColor: '',
      bgImg: '',
      getTicketBtn: '',
      shareBtn: '',
      ticketBaoIcon: '',
      ticketId: '',
      ticketsArray: [],
      processBgColor: '',
      processColor: '',
      taskJson: [],
      getTaskBtn: '',
      noFinishBtn: '',
      finishBtn: '',
      shareTxt: '',
      shareImg: '',
      bottomLogo: '',
      getListIcon: '',
      nogetListIcon: '',
      actStatus: 0,
      qvPic: '',
      ruleBtn: '',
      rulePic: '',
      ticketBaoBg: '',
      descriptionTxt: '',
      descriptionPic: '',
    }

    const GetGivefacialmaskactData = () => {
      return givefacialmaskactFrom
    }

    const RememberGivefacialmaskact = (data: any) => {
      givefacialmaskactFrom = data
    }

    const EmptyGivefacialmaskact = () => {
      givefacialmaskactFrom = {
        title: '',
        bgColor: '',
        bgImg: '',
        getTicketBtn: '',
        shareBtn: '',
        ticketBaoIcon: '',
        ticketId: '',
        ticketsArray: [],
        processBgColor: '',
        processColor: '',
        taskJson: [],
        getTaskBtn: '',
        noFinishBtn: '',
        finishBtn: '',
        shareTxt: '',
        shareImg: '',
        bottomLogo: '',
        getListIcon: '',
        nogetListIcon: '',
        actStatus: 0,
        qvPic: '',
        ruleBtn: '',
        rulePic: '',
        ticketBaoBg: '',
        descriptionTxt: '',
        descriptionPic: '',
      }
    }

    // 运费模板配置
    let postageFrom = {
      province: '',
      city: '',
      baseKg: 0,
      baseFee: 0,
      stepKg: 0,
      stepFee: 0,
      flag: 0,
    }

    const GetPostageData = () => {
      return postageFrom
    }

    const RememberPostage = (data: any) => {
      postageFrom = data
    }

    const EmptyPostage = () => {
      postageFrom = {
        province: '',
        city: '',
        baseKg: 0,
        baseFee: 0,
        stepKg: 0,
        stepFee: 0,
        flag: 0,
      }
    }

    // 会员级别
    let memberlevelsFrom = {
      vipLevel: 0,
      vipName: '',
      vipCard: '',
      vipLogo: '',
      vipWidget: '',
      vipIntegralLimit: 0,
      id: 0,
    }

    const GetMemberlevels = () => {
      return memberlevelsFrom
    }

    const RememberMemberlevels = (data: any) => {
      memberlevelsFrom = data
    }

    const EmptyMemberlevels = () => {
      memberlevelsFrom = {
        vipLevel: 0,
        vipName: '',
        vipCard: '',
        vipLogo: '',
        vipWidget: '',
        vipIntegralLimit: 0,
        id: 0,
      }
    }

    // 积分商城商品
    let memberproductFrom = {
      productId: 0,
      payType: 1,
      saleScore: 0,
      secTime: '',
      secEndTime: '',
      secLabels: '',
      id: '',
    }

    const GetMemberproduct = () => {
      return memberproductFrom
    }

    const RememberMemberproduct = (data: any) => {
      memberproductFrom = data
    }

    const EmptyMemberproduct = () => {
      memberproductFrom = {
        productId: 0,
        payType: 1,
        saleScore: 0,
        secTime: '',
        secEndTime: '',
        secLabels: '',
        id: '',
      }
    }

    // 活动管理--会员日
    let memberholidayFrom = {
      name: '',
      banner: '',
      openType: 0,
      openDate: 0,
      productIdsSec: '',
      productIdsNom: '',
      startDate: '',
      endDate: '' }

    const GetMemberholiday = () => {
      return memberholidayFrom
    }

    const RememberMemberholiday = (data: any) => {
      memberholidayFrom = data
    }

    const EmptyMemberholiday = () => {
      memberholidayFrom = {
        name: '',
        banner: '',
        openType: 0,
        openDate: 0,
        productIdsSec: '',
        productIdsNom: '',
        startDate: '',
        endDate: '' }
    }

    // 零元使用
    let freetrialFrom = {
      title: '',
      proImg: '',
      productId: 0,
      syProductId: 0,
      minVipLevel: 0,
      startTime: '',
      lotteryTime: '',
      qrcodeBgimg: '',
      shareTxt: '',
      shareImg: '',
      limitCon: 0,
      subscribeCon: 0,
      applyCon: 0,
      enable: true,
      sort: 0,
      buyUrl: '',
    }

    const GetFreetrial = () => {
      return freetrialFrom
    }

    const RememberFreetrial = (data: any) => {
      freetrialFrom = data
    }

    const EmptyFreetrial = () => {
      freetrialFrom = {
        title: '',
        proImg: '',
        productId: 0,
        syProductId: 0,
        minVipLevel: 0,
        startTime: '',
        lotteryTime: '',
        qrcodeBgimg: '',
        shareTxt: '',
        shareImg: '',
        limitCon: 0,
        subscribeCon: 0,
        applyCon: 0,
        enable: true,
        sort: 0,
        buyUrl: '',
      }
    }

    // 生日礼
    let birthdayFrom = {
      bannerPics: [],
      giftJson: [
        {
          vip_level: 0,
          ticketId: 0,
          score: 0,
        },
      ],
      productIds: [
      ],
      qvPic: '',
      shareTxt: '',
      sharePic: '',
      flag: 0,
    }

    const GetBirthday = () => {
      return birthdayFrom
    }

    const RememberBirthday = (data: any) => {
      birthdayFrom = data
    }

    const EmptyBirthday = () => {
      birthdayFrom = {
        bannerPics: [],
        giftJson: [
          {
            vip_level: 0,
            ticketId: 0,
            score: 0,
          },
        ],
        productIds: [
        ],
        qvPic: '',
        shareTxt: '',
        sharePic: '',
        flag: 0,
      }
    }

    // 评测记录
    let freetrialEvaluationFrom = {
      trialApplyId: 0,
      trialProductId: 0,
      userId: 0,
      openId: '',
      nickName: '',
      avatar: '',
      scoreOverall: 0,
      scoreItem1: 0,
      scoreItem2: 0,
      scoreItem3: 0,
      scoreItem4: 0,
      scoreItem5: 0,
      contents: '',
      pictures: [],
      viewCon: 0,
      praiseCon: 0,
      addTime: '',
      auditStatus: 0,
    }

    const GetFreetrialEvaluation = () => {
      return freetrialEvaluationFrom
    }

    const RememberFreetrialEvaluation = (data: any) => {
      freetrialEvaluationFrom = data
    }

    const EmptyFreetrialEvaluation = () => {
      freetrialEvaluationFrom = {
        trialApplyId: 0,
        trialProductId: 0,
        userId: 0,
        openId: '',
        nickName: '',
        avatar: '',
        scoreOverall: 0,
        scoreItem1: 0,
        scoreItem2: 0,
        scoreItem3: 0,
        scoreItem4: 0,
        scoreItem5: 0,
        contents: '',
        pictures: [],
        viewCon: 0,
        praiseCon: 0,
        addTime: '',
        auditStatus: 0,
      }
    }

    // 店铺管理
    let shopFrom = {
      shopName: '',
      shopPic: '',
      shopAddress: '',
      phone: '',
      shopStatus: 1,
      desp: '',
      realName: '',
      userStatus: 1,
      userMobile: '',
      faceUrl: '',
      percents: 0,
    }

    const GetShop = () => {
      return shopFrom
    }

    const RememberShop = (data: any) => {
      shopFrom = data
    }

    const EmptyShop = () => {
      shopFrom = {
        shopName: '',
        shopPic: '',
        shopAddress: '',
        phone: '',
        shopStatus: 1,
        desp: '',
        realName: '',
        userStatus: 1,
        userMobile: '',
        faceUrl: '',
        percents: 0,
      }
    }

    // 门店管理
    let storeFrom = {
      storeName: '',
      storePic: '',
      storeAddress: '',
      phone: '',
      storeStatus: 1,
    }

    const GetStore = () => {
      return storeFrom
    }

    const RememberStore = (data: any) => {
      storeFrom = data
    }

    const EmptyStore = () => {
      storeFrom = {
        storeName: '',
        storePic: '',
        storeAddress: '',
        phone: '',
        storeStatus: 1,
      }
    }

    // 预约直播
    let livingFrom = {
      anchor_userid: '',
      theme: '',
      living_start: '',
      living_duration: '',
      description: '',
      type: 0,
      agentid: 0,
      remind_time: 0,
      activity_cover_mediaid: '',
      activity_share_mediaid: '',
      activity_detail: {
        description: '',
        image_list: [],
      },
    }

    const GetLiving = () => {
      return livingFrom
    }

    const RememberLiving = (data: any) => {
      livingFrom = data
    }

    const EmptyLiving = () => {
      livingFrom = {
        anchor_userid: '',
        theme: '',
        living_start: '',
        living_duration: '',
        description: '',
        type: 0,
        agentid: 0,
        remind_time: 0,
        activity_cover_mediaid: '',
        activity_share_mediaid: '',
        activity_detail: {
          description: '',
          image_list: [],
        },
      }
    }

    // 专题管理
    let subjectFrom = {
      subjectName: '',
      banners: [],
      shareTxt: '',
      shareImg: '',
      sort: 0,
      enable: true,
      desp: '',
    }

    const GetSubject = () => {
      return subjectFrom
    }

    const RememberSubject = (data: any) => {
      subjectFrom = data
    }

    const EmptySubject = () => {
      subjectFrom = {
        subjectName: '',
        banners: [],
        shareTxt: '',
        shareImg: '',
        sort: 0,
        enable: true,
        desp: '',
      }
    }

    // 落地页活动配置
    let collectionFrom = {
      bannerPic: '',
      bottomPic: '',
      sharePic: '',
      shareTxt: '',
      getBtnPic: '',
      usedBtnPic: '',
      actStatus: 0,
    }

    const GetCollection = () => {
      return collectionFrom
    }

    const RememberCollection = (data: any) => {
      collectionFrom = data
    }

    const EmptyCollection = () => {
      collectionFrom = {
        bannerPic: '',
        bottomPic: '',
        sharePic: '',
        shareTxt: '',
        getBtnPic: '',
        usedBtnPic: '',
        actStatus: 0,
      }
    }

    return {
      GetCommodityData,
      RememberCommodity,
      EmptyCommodity,
      GetVoucherData,
      RememberVoucher,
      EmptyVoucher,
      GetVideoData,
      RememberVideo,
      EmptyVideo,
      GetEnterpriseWeChatData,
      RememberEnterpriseWeChat,
      EmptyEnterpriseWeChat,
      GetMessageData,
      RememberMessage,
      EmptyMessage,
      GetPeopleData,
      RememberPeople,
      EmptyPeople,
      GetVipLconData,
      RememberVipLcon,
      EmptyVipLcon,
      GetScreenData,
      RememberScreen,
      EmptyScreen,
      GetMusicData,
      RememberMusic,
      EmptyMusic,
      GetIconData,
      RememberIcon,
      EmptyIcon,
      GetHexiaoData,
      RememberHexiao,
      EmptyHexiao,
      GetDrawactprizeData,
      RememberDrawactprize,
      EmptyDrawactprize,
      GetSubscribermsgtempleData,
      RememberSubscribermsgtemple,
      EmptySubscribermsgtemple,
      GetDrawactData,
      RememberDrawact,
      EmptyDrawact,
      GetDrawactAdminAccountData,
      RememberDrawactAdminAccount,
      EmptyDrawactAdminAccount,
      GetDrawactAccountLabelData,
      RememberDrawactAccountLabel,
      EmptyDrawactAccountLabel,
      GetGivefacialmaskactData,
      RememberGivefacialmaskact,
      EmptyGivefacialmaskact,
      GetPostageData,
      RememberPostage,
      EmptyPostage,
      GetMemberlevels,
      RememberMemberlevels,
      EmptyMemberlevels,
      GetMemberproduct,
      RememberMemberproduct,
      EmptyMemberproduct,
      GetMemberholiday,
      RememberMemberholiday,
      EmptyMemberholiday,
      GetFreetrial,
      RememberFreetrial,
      EmptyFreetrial,
      GetBirthday,
      RememberBirthday,
      EmptyBirthday,
      GetFreetrialEvaluation,
      RememberFreetrialEvaluation,
      EmptyFreetrialEvaluation,
      GetShop,
      RememberShop,
      EmptyShop,
      GetStore,
      RememberStore,
      EmptyStore,
      GetLiving,
      RememberLiving,
      EmptyLiving,
      GetSubject,
      RememberSubject,
      EmptySubject,
      GetCollection,
      RememberCollection,
      EmptyCollection,
    }
  },
)
export default useCommodityStore
